const db = wx.cloud.database();
const app = getApp();

Page({
  data: {

  },


  toSf: function () {
    wx.navigateTo({
      url: '../submit/submit?area=' + this.data.area + '&agent=' + this.data.agent + '&page=' + this.data.page,
    })
  },
  toCk: function () {
    wx.navigateTo({
      url: '../search/search?area=' + this.data.area + '&agent=' + this.data.agent + '&page=' + this.data.page,
    })
  },


  onLoad: function (options) {
    var that = this;
    console.log(options);
    that.setData({
      area: options.area,
      agent: options.agent
    })
    if (options.page) {
      that.setData({
        page: options.page
      })
    }
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }

})